<%@ page language="Java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.lyq.bean.EmailTest"%>
<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <title>邮箱校验</title>        
 </head>
 <body>
 <div align="center">
 	<%
 		//获取邮箱地址
 		String email = request.getParameter("email");
 		//实例化EmailTest,对email赋值
 		EmailTest et = new EmailTest(email);
 		//判断是否是标准的邮箱
 		if(et.isEmail()){
 			out.print(email + "<br>是一个标准的邮箱地址</br>");
 		}else{
 			out.print(email + "<br>不是一个标准的邮箱地址</br>");
 		}
 	%>
 	<a href="check_email.jsp">返回</a>
 </div>
 </body>
</html>